package cn.xxx.org.domain;

import cn.xxx.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {
    @ApiModelProperty(value = "部门编号" ,name = "sn")
    private String sn;
    private String name;
    @ApiModelProperty(value = "部门层级" ,name = "dirPath")
    private String dirPath;
    private Integer state;
    //private Long manager_id;
    //通过对象引用表关系
    @ApiModelProperty(value = "部门员工" ,name = "manager")
    private Employee manager;
    //private Long parent_id;
    private Department parent;

    List<Department> children = new ArrayList<>();
}
